package org.smile.design.adaptor.interfacz;

public class Application {
    public static void main(String[] args) {
        System.out.println("==========Android==========");
        Android huawei = new Android();
        huawei.setAndroidAdaptor(new AndroidAdaptor());
        huawei.charge();

        System.out.println("==========Iphone===========");
        Iphone<Lighting> x14 = new Iphone<>();

        Lighting adaptor = new AdaptorUSBC2Lighting();
        AdaptorUSBC2Lighting adaptor1 = new AdaptorUSBC2Lighting();

        System.out.println("==========chargeIphone=====");
        x14.chargeIphone(adaptor);

        System.out.println("==========charge===========");
        x14.charge(adaptor1);

    }
}
